<!DOCTYPE html>
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
  </head>
  <body>
<% @vehicles.each do |vehicle| %>
	Name:  <%= vehicle[:info].name %><br/>
	Year:  <%= vehicle[:info].year %><br/>
	Price:  <%= vehicle[:info].price %><br/>
	KM:  <%= vehicle[:info].km %><br/>
	Transmission:  <%= vehicle[:info].transmission %><br/>
	URL:  <%= link_to "Click", vehicle[:info].url %><br/>
  	Listed:  <%= vehicle[:info].date_listed %><br/>
  	Updated:  <%= vehicle[:info].date_updated %><br/><br/>
  
	<b>AVERAGES:</b> (sample size <%= vehicle[:sample_size] %>)<br/>
		Price = <%= vehicle[:average_price] %><br/>
		KM = <%= vehicle[:average_km] %> <br/>

	<% if not vehicle[:old_price].nil? %>
		<b>OLD PRICE: <%= vehicle[:old_price] %></b><br/>
	<% end %>
	<br/><br/><br/>
	
  	Description:  <%= vehicle[:info].description %><br/><br/><br/>

	<hr /><hr />
<% end %>

  </body>
</html>